package com.aizuda.boot.modules.system.entity.vo;

import com.aizuda.bpm.engine.entity.FlwTaskActor;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class DepartmentHeadVO {

    /**
     * 主管ID
     */
    private Long headId;

    /**
     * 主管名称
     */
    private String headName;

    public FlwTaskActor toFlwTaskActor() {
        FlwTaskActor flwTaskActor = new FlwTaskActor();
        flwTaskActor.setActorId(String.valueOf(headId));
        flwTaskActor.setActorName(headName);
        flwTaskActor.setActorType(0);
        return flwTaskActor;
    }
}
